
<script>
    //$('#mainmenu').hide();
    document.getElementById('mainmenu').style.display = 'none';
    document.getElementById('footer').style.display = 'none';
</script>
<style>
    .clock {
        display: none;
    }
    body {
        padding-top: 40px;
        padding-bottom: 40px;
        background: url(images/cctvlogin.jpg) no-repeat center center fixed; 
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    .form-signin {
        max-width: 330px;
        padding: 15px;
        margin: 0 auto;
    }
    .form-signin .form-signin-heading,
    .form-signin .checkbox {
        margin-bottom: 10px;
    }
    .form-signin .checkbox {
        font-weight: normal;
    }
    .form-signin .form-control {
        position: relative;
        height: auto;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 10px;
        font-size: 16px;
    }
    .form-signin .form-control:focus {
        z-index: 2;
    }
    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }
    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    #loginbox {
        opacity: 0.84;
    }
</style>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
        <section class="login">
            <div class="titulo"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/logo_sigap.png" /></div>
            <?php
            $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array(
                'enableAjaxValidation' => true,
                'id' => 'login-form',
                'htmlOptions' => array(
                    'class' => 'form-signin'
                )
            ));
            ?>
            <h2>Please sign in</h2>
           <?php
                                echo $form->textField($model, 'username', array(
                                    'placeholder' => 'Username',
                                    'autofocus' => true,
                                    'title'=>"Username required"
                                ));
                                ?>
                                <?php
                                echo $form->passwordField($model, 'password', array(
                                    'placeholder' => 'Password',
                                    'title'=>"Password required"
                                ));
                                ?>
                                <?php
                                echo $form->checkBoxControlGroup($model, 'rememberMe');
                                ?>
                                <?php
                                echo BsHtml::submitButton('Sign in', array(
                                    //'type'=>'login',
                                    //'url'=>'site/login',
                                    'block' => true,
                                    'color' => BsHtml::BUTTON_COLOR_PRIMARY,
                                    'size' => BsHtml::BUTTON_SIZE_LARGE,
                                ));
                                ?>

                                <?php
                                $this->endWidget();
                                ?>

                        

                        <div class="login-error" >
                            <?php //echo CHtml::errorSummary($model); ?>
                            <?php
                            if (CHtml::errorSummary($model))
                                echo BsHtml::alert(BsHtml::ALERT_COLOR_DANGER, BsHtml::bold('Please fix the following input errors: ') . 'Incorrect username or password.');
                            ?>
                        </div>


                        </section>
                      
